package com.tjc.cloud.base.model

import java.io.File
import java.io.FileReader

//
//import com.fasterxml.jackson.annotation.JsonIgnore
//import io.swagger.annotations.ApiModel
//import io.swagger.annotations.ApiModelProperty
//import org.springframework.data.annotation.Id
//import java.io.FileReader
//
//@ApiModel
//open class BaseModel(
//        @ApiModelProperty(hidden = true)
//        @Id
//        var id: String? = null,
//        @JsonIgnore
//        @ApiModelProperty(hidden = true)
//        var delete: Boolean = false
//)


fun main(args: Array<String>) {
    val fr = FileReader("E:\\workspace\\cloud\\settings.gradle")
    fr.forEachLine {
        if (it.startsWith("include ':")) {
            val path = "E:\\workspace\\cloud\\" + it.replace("include ':", "").replace("'", "").replace(":", "\\") + "\\src\\main\\kotlin\\com"
            if (File(path,"tck").isDirectory) {
                val file=File(path ,"tck")
                println(file)
                println(File(path ,"tjc"))
                file.renameTo(File(path,"tjc"))
            }
        }
    }
}